/**
 * <p>Copyright:Copyright(c) 2019</p>
 * <p>Company:Professional</p>
 * <p>Package:com.cesgroup.zw.spring.boot.echarts.component.series</p>
 * <p>File:Parallel.java</p>
 * <p>类更新历史信息</p>
 * @todo chanlong(陈龙) 创建于 Jun 4, 2019 12:05:15 PM
 */
package com.cesgroup.zw.spring.boot.echarts.component.series;

import java.math.BigDecimal;

import com.cesgroup.zw.spring.boot.echarts.component.series.parent.LargeSerries;
import com.cesgroup.zw.spring.boot.echarts.enums.Coordinate;
import com.cesgroup.zw.spring.boot.echarts.model.series.Emphasis;
import com.cesgroup.zw.spring.boot.echarts.model.style.LineStyle;
import com.cesgroup.zw.spring.boot.supports.util.math.BigDecimalUtil;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>描述: 平行坐标系的系列</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date Jun 4, 2019 12:05:15 PM
 * @version 1.0.2019
 */
@Data @SuppressWarnings("serial")
@EqualsAndHashCode(callSuper = true)
public class Parallel extends LargeSerries {

	/** 该系列使用的坐标系，[default: null] */
	private Coordinate coordinateSystem;
	
	/** 使用的极坐标系的 index，[default: 0] */
	private Integer polarIndex;
	
	/** 线条样式 */
	private LineStyle lineStyle;
	
	/** 高亮样式 */
	private Emphasis emphasis;
	
	/** 框选时，未被选中的条线会设置成这个『透明度』（从而可以达到变暗的效果）*/
	private BigDecimal inactiveOpacity;
	
	/** 框选时，选中的条线会设置成这个『透明度』（从而可以达到高亮的效果）*/
	private BigDecimal activeOpacity;
	
	/** 是否实时刷新，[default: true] */
	private Boolean realtime;
	
	/** 是否使用平滑曲线，[default: false] */
	private BigDecimal smooth;
	
	public void setInactiveOpacity(int opacity) {
		this.inactiveOpacity = BigDecimalUtil.valueOf(opacity);
	}
	
	public void setInactiveOpacity(double opacity) {
		this.inactiveOpacity = BigDecimalUtil.valueOf(opacity);
	}
	
	public void setActiveOpacity(int opacity) {
		this.activeOpacity = BigDecimalUtil.valueOf(opacity);
	}
	
	public void setActiveOpacity(double opacity) {
		this.activeOpacity = BigDecimalUtil.valueOf(opacity);
	}
	
	public void setSmooth(int smooth) {
		this.activeOpacity = BigDecimalUtil.valueOf(smooth);
	}
	
	public void setSmooth(double smooth) {
		this.activeOpacity = BigDecimalUtil.valueOf(smooth);
	}
	
	public Parallel() {
		this.setType("parallel");
	}
}
